<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<head>
<title>查看邮件</title>
<script type="text/javascript">
$(document).ready(function(){
	$('#revert').click(function(){
		var senderId = $('input[name=mail.sender.id]').val();
		BaseJs.toAction('mail/ListMail!newMail?mail.receiver.id=' + senderId,'_blank');
	});
});
</script>
</head>
<body>
<h2 class="title">邮件内容</h2>
<s:hidden name="mail.sender.id"></s:hidden>
<div class="subject"><s:property value="mail.title" /> </div>
<div class="dateInfo">
<s:if test="mail.receiver.id==#session.curUser.id">
	邮件来自&nbsp;&nbsp;<s:property value="mail.sender.name"/></s:if><s:else>
	邮件发给&nbsp;&nbsp;<s:property value="mail.receiver.name"/>
	</s:else>
	时间&nbsp;&nbsp;<s:date name="mail.createDate" format="yyyy-MM-dd HH:mm" />&nbsp;&nbsp;
</div>
<div class="content"><s:property value="mail.content" escape="false" /><br>
<s:if test="mail.receiver.id==#session.curUser.id">
<div class="btnGroup"><input type="button" value="回复" id="revert"/></div></s:if>
</div>
</body>